package com.br.cashflowdao.hibernate.dao.exception;

/**
 * This class provides a encapsulation of the generic java Exception.
 *
 * @author Marcel Sena <marcel.sena at marcel.sena@gmail.com>
 */
public class DAOException extends Exception {

    /**
     * Creates a new instance of <code>DAOException</code> without detail message.
     */
    public DAOException() {
    }


    /**
     * Constructs an instance of <code>DAOException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public DAOException(String msg) {
        super(msg);
    }

    /**
     * Constructs an instance of <code>DAOException</code> with the specified exception.
     * @param <code>Exception</code> msg the detail message.
     */
    public DAOException(Exception e) {
        super(e);
    }
}
